<script setup lang="ts">
import AddWrite from './components/addWrite.vue'
import { ContentDetailWrap } from '@/components/ContentDetailWrap'
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useRouter } from 'vue-router'

const { push } = useRouter()

const { t } = useI18n()

const addWrite = ref<ComponentRef<typeof AddWrite>>()
</script>

<template>
  <ContentDetailWrap
    :title="t('exampleDemo.add')"
    @back="push('/financialModule/PurchasePaymentOrder')"
  >
    <AddWrite ref="addWrite" />
  </ContentDetailWrap>
</template>
